$(function(){
    $.ajax({
        type: "get",
        url: "http://39.98.85.248:3002/artist/list",
        data: "",
        dataType: "json",
        success: function (response) {
            console.log(response);

            $("body").append("<ul class='artists'></ul>");
            let arr_artists = response.artists;
            arr_artists.forEach(element => {
            
                let content = '<li><a href=artist.html?id='+ element.id+'><img src="'+element.img1v1Url+'" alt=""><span>'+element.name+'</span></a></li>';
                $(".artists").append(content)
                 



                
            });
        }
    });
})